package com.ruoyi.ruoyiyinzheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 配方比例业务对象
 *
 * @author ruoyi
 * @date 2023-09-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class StRecieptRatioBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 实验编号ID
     */
    @NotNull(message = "实验编号ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long experimentNumberId;

    /**
     * 配方成分主键
     */
    @NotNull(message = "配方成分主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long reciptComposeId;

    /**
     * 比例
     */
    private BigDecimal ratio;

    /**
     * 单位
     */
    private String unit;

    /**
     * 备注
     */
    private String remark;


}
